import unittest,time
from selenium import webdriver
from week3_93.Page.Page_data import Page_data
from ddt import ddt,file_data

@ddt
class TestCase(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Firefox()

    def tearDown(self):
        time.sleep(2)
        self.driver.quit()

    @file_data(r'E:\gg4\PythonProject1\week3_93\Data\yaml.yaml')
    def test_01(self,username,password):
        po = Page_data(self.driver)
        po.jiuxian_01(username,password)

if __name__ == '__main__':
    unittest.main()